"""
Project Name : api_automation_framework
File Name : links_n_offset.py
Author : lldhsds
Date : 2024/12/28 17:02
Description: /links/{n}/{offset}, Generate a page containing n links to other pages which do the same.
"""

import requests

def links_n_offset(n: int, offset: int) -> None:
    """
    /links/{n}/{offset}, Generate a page containing n links to other pages which do the same.
    : param n int
    : param offset int
    : return Code 200 HTML links.
    """
    url = f"https://httpbin.org/links/{n}/{offset}".format(n, offset)
    headers = {'Accept': 'text/html'}
    response = requests.get(url, headers=headers)
    print(response.status_code)
    print(response.headers)
    print(response.text)

links_n_offset(5, 10)
